]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Bug 562633 – Use GNOME_SHELL_DISABLE_TFP environment variable
authorOwen Taylor <otaylor@src.gnome.org>
Sat, 29 Nov 2008 21:11:31 +0000 (21:11 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sat, 29 Nov 2008 21:11:31 +0000 (21:11 +0000)
Allow forcing off the texture_for_pixmap extension by environment
variable, since it is apparently buggy on old Intel cards with
certain driver versions

Based on patch from RainCT (Siegfried Gevatter)

svn path=/trunk/; revision=92

scripts/launcher.py

index 45325ae7b3e4b24e0b9eba6e97fc680ec2f2af9d..f893f03ec2f4b6abac3ebfed706aff40b444d834 100644 (file)
@@ -41,6 +41,14 @@ class Launcher:
         """Starts gnome-shell. Returns a subprocess.Popen object"""
 
         use_tfp = self.use_tfp
+
+        # Allow disabling usage of the EXT_texture_for_pixmap extension.
+        # FIXME: Move this to ClutterGlxPixmap like
+        # CLUTTER_PIXMAP_TEXTURE_RECTANGLE=disable.
+        if 'GNOME_SHELL_DISABLE_DISABLE_TFP' in os.environ and
+           os.environ['GNOME_SHELL_DISABLE_DISABLE_TFP'] != '':
+           use_tfp = False
+
         if use_tfp:
             # Check if GLX supports GL_ARB_texture_non_power_of_two; currently clutter
             # can only use GLX_EXT_texture_for_pixmap if we have that extension.